package com.example.springbootlearn.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

/**
 * 用来存放封装映射信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyselfMapper {
    /**
     * 类名
     */
    private String className;

    /**
     * 表名
     */
    private String tableName;

    /**
     * 主键信息
     */
    private Map<String,String> idMapper = new HashMap<>();

    /**
     * 普通属性和字段信息
     */
    private Map<String,String> propMapper = new HashMap<>();

    @Override
    public String toString() {
        return "Mapper{" +
                "className='" + className + '\'' +
                ", tableName='" + tableName + '\'' +
                ", idMapper=" + idMapper +
                ", propMapper=" + propMapper +
                '}';
    }
}
